Skip to content

feat(graph): support unbounded visualizer snapshots#141

Merged
jack-arturo merged 3 commits into
mainfrom
chore/graph-visualizer-limit-metadata
Jun 6, 2026
Merged

feat(graph): support unbounded visualizer snapshots#141
jack-arturo merged 3 commits into
mainfrom
chore/graph-visualizer-limit-metadata

Conversation

@jack-arturo

Copy link
Copy Markdown
Member

Summary

  • allow the graph snapshot endpoint to treat limit=0 as "return all" and raise the upper cap for large visualizer sessions
  • include archive_threshold in graph metadata so the viewer can mirror archive handling client-side

Test plan

  • pre-commit hooks passed during commit
  • verify the graph visualizer can request limit=0
  • verify archive threshold metadata is consumed in the visualizer

Made with Cursor

Allow the graph visualizer to request the full snapshot and expose the archive threshold in graph metadata so the viewer can align its filtering with server-side state.

Made-with: Cursor
@jack-arturo jack-arturo marked this pull request as ready for review June 6, 2026 17:04
Copilot AI review requested due to automatic review settings June 6, 2026 17:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the graph visualization API to better support large graph visualizer sessions by allowing clients to request an unbounded snapshot (limit=0) and by exposing consolidation archive behavior to the client via metadata.

Changes:

  • Treat limit=0 on GET /graph/snapshot as “return all”, and raise the cap for bounded requests (up to 50,000).
  • Add archive_threshold to the meta payload for both snapshot and stats endpoints.

Comment thread automem/api/graph.py Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@jack-arturo jack-arturo merged commit c730128 into main Jun 6, 2026
7 checks passed
@jack-arturo jack-arturo deleted the chore/graph-visualizer-limit-metadata branch June 6, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants